<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .visibile{
            visibility: hidden;
        }
    </style>
</head>
<body>
    <button onclick="document.getElementById('box').className==''?document.getElementById('box').className='visibile':document.getElementById('box').className=''">tragger</button>
    <div id="box">
        Lorem ipsum dolor sit, amet consectetur adipisicing elit. Esse blanditiis non quia, beatae ea voluptatem ipsa necessitatibus. Non, aspernatur, quam natus, quae delectus vitae corrupti consequatur earum autem hic labore.
    </div>
</body>
</html>